package com.wltt.product.ahuthr.controller;

import com.wltt.product.ahuthr.model.ResultData;
import com.wltt.product.ahuthr.model.vo.ListUserSalaryReq;
import com.wltt.product.ahuthr.model.vo.QuerySystemPostByTypeReq;
import com.wltt.product.ahuthr.service.SystemPostService;
import com.wltt.product.ahuthr.service.SystemPostTypeService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/system/post")
public class SystemPostController {

    @Resource
    private SystemPostService systemPostService;

    /**
     * 查询岗位
     *
     * @return
     */
    @PostMapping(value = {"/querySystemPostByType"})
    public ResultData querySystemPostByType(@RequestBody QuerySystemPostByTypeReq querySystemPostByTypeReq) {
        return systemPostService.querySystemPostByType(querySystemPostByTypeReq);
    }
}
